package com.weishu.controller;


import com.weishu.domain.SysRegion;
import com.weishu.service.ISysRegionService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 地区表 前端控制器
 * </p>
 *
 * @author liyan
 * @since 2021-07-22
 */
@RestController
@RequestMapping("/sysRegion")
public class SysRegionController {

    @Autowired
    private ISysRegionService sysRegionService;

    @RequestMapping("rlist")
    public List<SysRegion> list(String parent_id){
        List<SysRegion> rlist = sysRegionService.rlist(parent_id);
        return rlist;
    }
}

